home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CU Amiga Super CD-ROM 4
/
CU Amiga Magazine's Super CD-ROM 04 (1996)(EMAP Images)(GB)(Track 1 of 3)[!][issue 1996-11].iso
/
magazine
/
psion
/
misc
/
wt276.lzx
/
worktime.txt
< prev
Wrap
Text File
|
2012-10-29
|
7KB
|
194 lines
Worktime
Description of functionality and inner parts.
File and Record structure.
--------------------------
A Worktime data file (.WT) consists of a number of records, all
in this format:
Begin time (a.begin&) Time when the work/project started
End time (a.end&) Time when the work/project ended
Normal time (a.norm&) The expected worktime for this timeslot.
This value is subtracted from the difference
between Begin and End time.
(Projects default to 0)
Project text (a.text$) A Project text description
Total time (a.total&) Accumulated time
The above record fields have different meanings for different parts of
the worktime data file. The a.begin& value is used to seperate between
different sections of the file (Records are always kept in sorted order
after a.begin&). The following sections are used:
a.begin&
0 Old setup record. Now unused.
1-99 Setup record. At the moment only 1-10 are used.
101-999 Projects (Project number+100).
This limits the number of project to 899 (999-100)
1000- Time entries. a.begin& is number of seconds since
1/1/1970
Description of the field values for each section follows
0- 99 TSetup&(),PSetup&(),Setup$() values [internal]
0 Old setup, now unused
TSetup&(): - Time mode
1-7 a.end&=Normal hours
8-9 a.end&=morning/evening slack
10 a.end&=Font
PSetup&(): - Project mode
1-2 a.norm&=Project rounding single
3-4 a.norm&=Project rounding totals
5 a.norm&=Automatic project calculation
6 a.norm&=Normaltime disabled
10 a.norm&=Font
Setup$():
1 a.text$=Print output file
2 a.text$="LOC::M:\*.WTM"
3-10 a.text$=Titles for printout (Not implemented)
The next version of Worktime might change the meaning of the Print
information stored in the database.
101-999 Projects / indexes
a.begin&=100+Project number
a.end&=100 * cost/hour
a.text$=Project text
a.norm&=UNUSED
a.total&=Total time used
1000- Time slots
a.begin&=Meeting time
a.end&=Leaving time
a.text$=Project/entry text
a.norm&=Normal (estimated) time
a.total&=Accum. time diff
Time mode
=========
This mode gives a screen with the dates, Saturday/Sunday in grey,
and for time entries the start time, end time, todays diff, accumulated
total and project description.
Dates with no entries shows just the date. There is no limit to the number
of entries per day. Internally there is no problem with entries spanning over
one or more days, but care should be taken that when editing an entry
(Psion-E or return) the ending date is set to the same date as the starting
date.
The edit function can be entered by pressing any of Return, cursor left or
Psion-E. The numbers shown in brackets are the unrounded time values.
Cursor right edits just the comment field.
To move around between dates, use cursor up or cursor down.
Use in combination with Shift (=4 entries), Psion (=10 entries) or control
(=30 days) to move faster.
The Jump to date moves directly to a date (Press Tab or Psion-J).
An entry can be copied (Psion-C) or Deleted (Delete or Psion-D) and later
inserted (Psion-I). The Begin and End times are automatically modified to
the inserted date. The Delete Range function (Shift-Psion-R) only saves the
last entry deleted.
New timing slots can be started and ended by pressing the space bar.
The Slack time definitions can be used to make it appear that you
started the entry a pre defined time before pressing the space bar.
The same applies for ending entries by pressing space bar
(the slack time is just added instead).
If Normal Worktime is enabled (Pdion-N) the normal worktime of the day
is automatically inserted into the record. Otherwise the normal is set
to zero and therefore does not change the total shown.
The letters a-z can be used for user pre-defined Project starter keys.
To defined a Project starter key, open the .OPL source code, and at the
end copy a 3 line function, change the function name (P=Project mode,
T=Time mode, A=Any mode) + a hexadecimal key number, and the project text.
Recompile the source code and you are ready to go.
You should probably keep a copy of your definitions in a separate file,
so it is easier to include when you get a new versin of Worktime.
If no project starter has been defined a Comment requester is shown. Type
in the project text and the project will be started.
The program comes ready with the follwing predefined Project starter keys:
l = Lunch
m = Meeting
w = Work
Project starter keys always sets the normal time to 0, and ignores slack
time settings.
Pressing a project starter key automatically ends a previous open project.
If you by accident ended a project that should not have been ended, you
can edit the entry and modify the end time to 00:00:00, then the end time
will be removed. (Use Psion-R to repaint the screen)
The Usage (Psion-U) can be used to abtain a quick overview of the project
usage for a period of time.
Project Mode
------------
This is a new mode and still not fully implemented.
In project mode all of the projects are shown with a text, cost per hour,
total time and total cost.
The sort function (Psion-S) clears total times (That functionality is bound
to be removed in next version, because Tally now takes count of original
totals for projects.)
The Tally function (Psion-T) recalculates the total time per project. If
project does not already exist in project mode, the tally function adds it
at end.
The Tab or Psion-J jumps to a specific project number.
Settings
--------
Font Type, Zoom in/out (=Font size) settings are saved seperately for
Project and Time mode.
Normal Worktime on/off, mon-sun only affects the space bar functionality.
Rounding affects all output, and the original time is only available
in the edit windows or by setting rounding off. It is adviced to do a
Sort (Psion-S) + Tally (Psion-T) after changing Rounding values.
Auto Calculation. I don't know what to say about this function. When having
a small database it is usually nice to have. But just a hundred records
or more and it becomes a stone around your legs. My advice is to keep
auto calculation off, and use Psion-T whenever you need the project totals
to be updated.
Erik Johansen
ej@it.dtu.dk
31/3/96